/*
 * requests_list.h
 * This file is part of gURL
 *
 * Copyright (C) 2013 - Aleksey Konovalov
 *
 *  This program is free software; you can redistribute it and/or modify
 *  it under the terms of the GNU Library General Public License as published by
 *  the Free Software Foundation; either version 2 of the License, or
 *  (at your option) any later version.
 *
 *  This program is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU Library General Public License for more details.
 *
 *  You should have received a copy of the GNU Library General Public License
 *  along with this program; if not, write to the Free Software
 *  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 */

#ifndef REQUESTS_LIST_H
#define REQUESTS_LIST_H

#include <gtk/gtk.h>
#include "session.h"

#define REQUESTS_LIST_TYPE (requests_list_get_type())
#define REQUESTS_LIST(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), REQUESTS_LIST_TYPE, RequestsList))
#define REQUESTS_LIST_CLASS(cl) (G_TYPE_CHECK_CLASS_CAST((cl), REQUESTS_LIST_TYPE, RequestsListClass))
#define IS_REQUESTS_LIST(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), REQUESTS_LIST_TYPE))
#define IS_REQUESTS_LIST_CLASS(cl) (G_TYPE_CHECK_CLASS_TYPE((cl), REQUESTS_LIST_TYPE))
#define REQUESTS_LIST_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), REQUESTS_LIST_TYPE, RequestsListClass))

typedef struct _RequestsList RequestsList;
typedef struct _RequestsListClass RequestsListClass;

GType requests_list_get_type();

GtkWidget* requests_list_new();
void requests_list_append(RequestsList* rl, Session* request);
void requests_list_clear(RequestsList* rl);

#endif /* REQUESTS_LIST_H */
